package com.qdlc.p2p.common.constant;
/**
 * 资金变更消息模版
 */
public enum ChangeReasonType {
    RED_ENVELOPE(ChangeCategory.red_envelope), // 红包兑换
    CASH_ENVELOPE(ChangeCategory.cash_envelope),// 现金兑换
    EXPERIENCE_INTEREST(ChangeCategory.experience_interest); // 体验金利息兑换

    ChangeCategory category;

    ChangeReasonType(ChangeCategory category) {
        this.category = category;
    }

    public String getCategoryName() {
        return category.name();
    }

    public byte getCategoryVal() {
        return category.getType();
    }
}